Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
bpk-tokens-css
Advanced tools
Design tokens for colours, spacing, font, etc.
npm install bpk-tokens --save-dev
@import '~bpk-tokens/tokens/base.default.scss';
.my-selector {
padding: $bpk-spacing-base;
}
For React Native:
// Individual tokens
import { spacingBase } from 'bpk-tokens/tokens/base.react.native';
console.log(spacingBase);
// Whole token categories
import { colors } from 'bpk-tokens/tokens/base.react.native';
console.log(colors.colorSkyGrayTint01);
// All tokens
import * as tokens from 'bpk-tokens/tokens/base.react.native';
console.log(tokens);
For web:
// Individual tokens
import { spacingBase } from 'bpk-tokens/tokens/base.es6';
console.log(spacingBase);
// Whole token categories
import { colors } from 'bpk-tokens/tokens/base.es6';
console.log(colors.colorSkyGrayTint01);
// All tokens
import * as tokens from 'bpk-tokens/tokens/base.es6';
console.log(tokens);
// Individual tokens
import { spacingBase } from 'bpk-tokens/tokens/base.common';
console.log(spacingBase);
// All tokens
import * as tokens from 'bpk-tokens/tokens/base.common';
console.log(tokens);
It is possible to add opacity to Backpack color tokens as follows:
import { colorSkyBlue } from 'bpk-tokens/tokens/base.react.native';
import { setOpacity } from 'bpk-tokens';
const transparentBlue500 = setOpacity(colorSkyBlue, 0.7);
console.log(transparentBlue500);
FAQs
Backpack design tokens for colors, spacing, font, etc.
The npm package bpk-tokens-css receives a total of 0 weekly downloads. As such, bpk-tokens-css popularity was classified as not popular.
We found that bpk-tokens-css demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.